#ifndef __MY_JSON__H_
#define __MY_JSON__H_
#include<nlohmann/json.hpp>
#include<string>
#include<vector>
using std::vector;
using std::string;
using nlohmann::json;
class cli_msg
{
public:
  int msgid;
  string data; 
};
void cli_to_json(json &j, const cli_msg &m);
void cli_from_json(const json &j, cli_msg &m);

class ser_msg
{
public:
  int msgid;
  vector<string> data;
};
void ser_to_json(json &j, const ser_msg &m);
void ser_from_json(const json &j, ser_msg &m);

#endif